/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ee.security;

import com.sun.appserv.security.AppservPasswordLoginModule;
import javax.security.auth.login.LoginException;

/**
 *
 * @author Gabriel Bran <gbran.u@gmail.com>
 */
public class ModelCustomModule extends AppservPasswordLoginModule {

    @Override
    protected void authenticateUser() throws LoginException {
        SecurityUtil.authenticateUser(_username, _passwd);
        String[] groups = {"allUsers"};
        commitUserAuthentication(groups);
    }
}
